package com.qijian.maindata.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 开工令异常对象 main_project_exception
 *
 * @author qijian
 * @date 2023-09-28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_project_exception")
public class ProjectException extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private Long id;

    @Excel(name = "开工利id")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "开工利id")
    private Long projectId;

    @Excel(name = "预算明细行id")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "预算明细行id")
    private Long issuanceItemId;

    @Excel(name = "1:成本异常")
    @ApiModelProperty(value = "1:成本异常")
    private String exceptionType;

    @Excel(name = "成本异常值")
    @ApiModelProperty(value = "成本异常值")
    private String exceptionValue;

    @Excel(name = "异常备注")
    @ApiModelProperty(value = "异常备注")
    private String remark;

    @Excel(name = "异常忽略")
    @ApiModelProperty(value = "异常忽略")
    private Integer ignoreFlag;

    @Excel(name = "超预算金额")
    @ApiModelProperty(value = "超预算金额")
    private BigDecimal gapAmount;
}
